package com.inno.launcher;

import android.content.Intent;
import android.util.Log;
import android.view.View;

import com.inno.launcher.R;
import com.inno.launcher.base_rebuild.BaseEntity;
import com.inno.launcher.base_rebuild.RBBaseActivity;
import com.inno.launcher.bean.TestBean;
import com.inno.launcher.contract.MainContract;
import com.inno.launcher.presenter.MainPresenter;

public class MainActivity extends RBBaseActivity implements MainContract.View {


    private MainPresenter mainPresenter;

    @Override
    public int getLayoutId() {
        return R.layout.activity_main;
    }

    @Override
    public void initView() {

    }

    @Override
    public void initData() {
        mainPresenter = new MainPresenter(this);
        mainPresenter.getMarketList(this,"0","20",1,"0");
    }

    @Override
    public void setListener() {

    }

    @Override
    public void getMarketList(BaseEntity<TestBean> baseEntity) {
        Log.e("111", "getMarketList: " + baseEntity.getData());
    }

    public void load(View view) {
        mainPresenter.getMarketList(this,"0","20",1,"0");
    }

    public void intentToGra(View view) {
        startActivity(new Intent(this,GradlientActivity.class));
    }

    public void intentToScri(View view) {
        startActivity(new Intent(this,ScrimUtilActivity.class));
    }
}